package br.com.drinksbar.negocio;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

/**
 * @author Professor Adriano Avelar
 * 
 *         classe reaproveitada do projeto passa tempo implementado pelo
 *         professor Adriano Avelar
 * */

public class UtilGui {
	private static Icon successIcon = new ImageIcon(
			Resource.class
					.getResource("/br/com/drinkbar/gui/imagens/ic_msg_success.png"));
	private static Icon errorIcon = new ImageIcon(
			Resource.class
					.getResource("/br/com/drinkbar/gui/imagens/ic_msg_error.png"));

	public UtilGui() {
		// TODO Auto-generated constructor stub
	}

	public final static void successMessage(String message) {
		JOptionPane.showMessageDialog(null, message, "Sucesso", 0, successIcon);
	}

	public final static void errorMessage(String message) {

		JOptionPane.showMessageDialog(null, message, "Erro", 0, errorIcon);

	}
}
